package com.globallogic.dmytro_zakharenko.university.person;

public class Student extends Person {
	
	public Student(String firstname, String lastname, int dateOfBirth, String placeOfBirth, double scholarship) {
		super(firstname, lastname, dateOfBirth, placeOfBirth, scholarship);
		this.setScholarship(scholarship);
	}

	/**
	 * set scholarship for the student
	 * 
	 * @param salary
	 */
	private void setScholarship(double scholarship) {
		this.mSalary = scholarship / 2;
	}	
}
